<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>查看留言</title>
<link rel="stylesheet" type="text/css" href="template/admin.css"/>
<script type="text/javascript" src="template/images/jquery.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$('.q').find('ul li').click(function(){
		$index=$('.q').find('ul li').index(this);
		$('#tb').find('div').eq($index).show().siblings().hide();
	});
});
</script>
<?php
	$tech_num = (count($tech_arr)-1);
	$show_tech = $tech_arr[rand(0,$tech_num)];
?>
<script type="text/javascript">
	$(document).ready(function(){
		$str = '<?php echo $show_tech;?>';
		$('#show_tech').html("<em>小提示：</em>"+$str).fadeIn('slow');
	});
</script>
</head>

<body>
<div class="admin_position"><span>当前位置 > 修改留言</span><p id="show_tech" style="display:none"></p></div><!--位置-->
<div class="admin_fh"><a href="?lang=<?php echo $lang;?>">返回</a></div>
<div class="order_contain">
<form name="maininfo" method="post" enctype="multipart/form-data" class="form" action="?">
<div class="order_main">
 <table cellpadding="0" cellspacing="0" width="100%">
 	<thead>
		<tr><th class="w1">参数说明</th><th class="w2">参数值</th><th class="w3 r">变量名</th></tr>
	</thead>
	<tbody>
		<tr>
		  <td class="w1" style="text-align:center">产品名称:</td><td class="w2"><?php echo empty($pr_rel[0]['title'])?'没有产品':'<a href="../show_content.php?id='.$rel[0]['pr_id'].'" target="_blank">'.$pr_rel[0]['title'].'</a>';?></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1" style="text-align:center">类型:</td><td class="w2"><?php echo $book_type_arr[$rel[0]['book_type']];?></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1" style="text-align:center">留言标题:</td><td class="w2"><?php echo $rel[0]['book_title'];?></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1" style="text-align:center">留言人:</td><td class="w2"><?php echo $rel[0]['book_name'];?></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1" style="text-align:center">留言邮箱:</td><td class="w2"><?php echo $rel[0]['mail'];?></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1" style="text-align:center">留言时间:</td><td class="w2"><?php echo date('Y-m-d H:m:s',$rel[0]['addtime']);?></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1" style="text-align:center">留言内容:</td><td class="w2"><?php echo $rel[0]['book_content'];?></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1" style="text-align:center">回复内容:</td><td class="w2"><textarea name="reply" style="width:80%; height:100px;"><?php echo $rel[0]['reply'];?></textarea></td><td class="w3"></td>
		</tr>
		<tr>
		  <td class="w1" style="text-align:center;width:15%">同时通过邮件回复:</td><td class="w2" style="width:70%"><label for="m1"><input id="m1" type="radio" value="1" name="is_mail"/>是</label><label for="m2"><input type="radio" id="m2" name="is_mail" checked="checked" value="0"/>否</label>&nbsp;(该功能需要先开启留言接收邮件)</td><td class="w3" style="width:15%"></td>
		</tr>
	</tbody>
 </table>
 </div>
<div class="order_btn">
<input type="hidden" name="action" value="save_reply"/><input type="hidden" name="id" value="<?php echo $id;?>"/><input type="hidden" name="replytime" value="<?php echo $rel[0]['replytime'];?>" /><input type="hidden" value="<?php echo $lang;?>" name="lang" />
  <input type="submit" value="确定" name="submit"/><input type="reset" style="margin:0 10px;" value="重置" name="reset"/>
 </div>
</form>
</div>
<div class="ie8-height"></div>
<div style="font-size:12px; color:#CCCCCC; padding:5px 0; text-align:center">powerd by <a href="http://fsai.cn" style="color:#CCCCCC" target="_blank">FOXSCMS</a></div>
</body>
</html>
